<h2>编辑书签</h2>
<%= error_messages_for :bookmark %>

<% form_for @bookmark,  :class=>"nf lf" do |f| %>

<p>
      <label for="url"  class="label_input" >地址</label>
      <%= f.text_field :url,  :class=>"input_text", :maxlength=>50%>
      <%= f.hidden_field :source_id%>
</p>

<p>
      <label for="title"  class="label_input" >标题</label>
      <%= f.text_field :title,  :class=>"input_text", :maxlength=>50%>
</p>

<p>
      <label for="note"  class="label_input" style="text-align:center" >说明</label>
      <%= f.text_area :note, :rows=>5, :cols=>50%>
</p>

<p>
      <label for="tag_list"  class="label_input" >标签</label>
      <%= f.text_field :tag_list, :class=>"input_text", :maxlength=>50%>
</p>

  <p>
    <%= f.submit "保存" %>
  </p>
<% end %>

<%= link_to 'Show', @bookmark %> |
<%= link_to 'Back', bookmarks_path %>

<p>
  我的标签:<br>
   <%=@myselecttags%>
</p>
<p>
  流行标签:<br>
   <%=@poptags%>
</p>
